<include file="Public:header" />
<div class="container clearfix">
    <include file="Public:sidebar" />
    <!--/sidebar-->
    <div class="main-wrap">
        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="index.html">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name"><!--{$navname}--></span></div>
        </div>
        <div class="result-wrap">
            <form action="<!--{:U('server/post')}-->" method="post" id="myform" name="myform">
                <div class="config-items">
                    <div class="config-title">
                        <h1><i class="icon-font">&#xe00a;</i>添加服务器信息</h1>
                    </div>
                    <div class="result-content">
                        <table width="100%" class="insert-tab">
                            <tbody>
                                <tr>
                                    <th width="10%"><i class="require-red">*</i>游戏名：</th>
                                    <td><input type="text" id="" value="<!--{$gamename}-->" name="gamename" class="common-text" readonly="readonly"></td>
                                </tr>
                                <tr>
                                    <th width="10%"><i class="require-red">*</i>服务器ID：</th>
                                    <td><input type="text" id="" value="<!--{$server[0]['area_num']}-->" name="area_num" class="common-text"></td>
                                </tr>
                                <tr>
                                    <th width="10%"><i class="require-red">*</i>服务器名：</th>
                                    <td><input type="text" id="" value="<!--{$server[0]['areaname']}-->" name="areaname" class="common-text"></td>
                                </tr>
                                <tr>
                                    <th width="10%"><i class="require-red">*</i>开服时间：</th>
                                    <td><input type="text" id="" value="<?php if($server[0]['open_time']){echo date('Y-m-d H:i:s',$server[0]['open_time']);}else{echo date('Y-m-d H:i:s');}?>" name="open_time" class=" common-text" onclick="SelectDate(this, 'yyyy-MM-dd hh:mm:ss')"></td>
                                </tr>
                                <tr>
                                    <th width="10%"><i class="require-red">*</i>充值时间：</th>
                                    <td><input type="text" id="" value="<?php if($server[0]['fee_time']){echo date('Y-m-d H:i:s',$server[0]['fee_time']);}else{echo date('Y-m-d H:i:s');}?>" name="fee_time" class="common-text" onclick="SelectDate(this, 'yyyy-MM-dd hh:mm:ss')"></td>
                                </tr>
                                <tr>
                                    <th width="10%"><i class="require-red">*</i>维护开始时间：</th>
                                    <td><input type="text" id="" value="<?php if($server[0]['maintenance_start']){echo date('Y-m-d H:i:s',$server[0]['maintenance_start']);}else{echo date('Y-m-d H:i:s');}?>" name="maintenance_start" class="common-text" onclick="SelectDate(this, 'yyyy-MM-dd hh:mm:ss')"></td>
                                </tr>
                                <tr>
                                    <th width="10%"><i class="require-red">*</i>维护结束时间：</th>
                                    <td><input type="text" id="" value="<?php if($server[0]['maintenance_end']){echo date('Y-m-d H:i:s',$server[0]['maintenance_end']);}else{echo date('Y-m-d H:i:s');}?>" name="maintenance_end" class="common-text" onclick="SelectDate(this, 'yyyy-MM-dd hh:mm:ss')"></td>
                                </tr>
                                <tr>
                                    <th width="10%"><i class="require-red">*</i>服务器状态：</th>
                                    <td>
                                        开启：<input type="radio" name="state" value="1" <if condition="$server[0]['state'] eq 1">checked="checked"</if> />&nbsp;&nbsp;&nbsp;&nbsp;
                                        关闭：<input type="radio" name="state" value="0" <if condition="$server[0]['state'] eq 0">checked="checked"</if> />
                                    </td>                                    
                                </tr>
                                <tr>
                                    <th width="10%"><i class="require-red">*</i>服务器IP：</th>
                                    <td><input type="text" id="" value="<!--{$server[0]['ip']}-->" name="ip" class="common-text"></td>
                                </tr>
                                <tr>
                                    <th width="10%"><i class="require-red">*</i>服务器域名：</th>
                                    <td><input type="text" id="" value="<!--{$server[0]['domain']}-->" name="domain" class="common-text"></td>
                                </tr>
                                <tr>
                                    <th width="10%"><i class="require-red">*</i>服务器密匙：</th>
                                    <td><input type="text" id="" value="<!--{$server[0]['server_key']}-->" name="server_key" class="common-text"></td>
                                </tr>
                                <tr>
                                    <th width="10%"><i class="require-red">*</i>是否为混服：</th>
                                    <td>
                                        混服：<input type="radio" name="ishf" value="1" <if condition="$server[0]['ishf'] eq 1">checked="checked"</if>/>
                                        非混服：<input type="radio" name="ishf" value="0" <if condition="$server[0]['ishf'] eq 0">checked="checked"</if>/>
                                    </td>
                                </tr>
                                 <tr>
                                    <th width="10%"><i class="require-red">*</i>混服GID：</th>
                                    <td><input type="text" id="" value="<!--{$server[0]['hf_gid']}-->" name="hf_gid" class="common-text"></td>
                                </tr>
                                 <tr>
                                    <th width="10%"><i class="require-red">*</i>混服SID：</th>
                                    <td><input type="text" id="" value="<!--{$server[0]['hf_sid']}-->" name="hf_sid" class="common-text"></td>
                                </tr>
                            <th></th>
                            <td>
                                <input type="hidden" name="gid" value="<!--{$gid}-->">
                                <input type="hidden" name="sid" value="<!--{$sid}-->">
                                <input type="submit" value="提交" class="btn btn-primary btn6 mr10">
                                <input type="button" value="返回" onclick="history.go(-1)" class="btn btn6">
                            </td>
                            </tr>
                            </tbody></table>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <!--/main-->
</div>
</body>
</html>
